package com.ruoyi.project.countrybus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.countrybus.mapper.SysDispatchCustomerMapper;
import com.ruoyi.project.countrybus.domain.SysDispatchCustomer;
import com.ruoyi.project.countrybus.service.ISysDispatchCustomerService;

/**
 * 乘客调度站点Service业务层处理
 * 
 * @author yangwenbo
 * @date 2022-04-24
 */
@Service
public class SysDispatchCustomerServiceImpl implements ISysDispatchCustomerService 
{
    @Autowired
    private SysDispatchCustomerMapper sysDispatchCustomerMapper;

    /**
     * 查询乘客调度站点
     * 
     * @param scheduleId 乘客调度站点主键
     * @return 乘客调度站点
     */
    @Override
    public SysDispatchCustomer selectSysDispatchCustomerByScheduleId(Long scheduleId)
    {
        return sysDispatchCustomerMapper.selectSysDispatchCustomerByScheduleId(scheduleId);
    }

    /**
     * 查询乘客调度站点列表
     * 
     * @param sysDispatchCustomer 乘客调度站点
     * @return 乘客调度站点
     */
    @Override
    public List<SysDispatchCustomer> selectSysDispatchCustomerList(SysDispatchCustomer sysDispatchCustomer)
    {
        return sysDispatchCustomerMapper.selectSysDispatchCustomerList(sysDispatchCustomer);
    }

    /**
     * 新增乘客调度站点
     * 
     * @param sysDispatchCustomer 乘客调度站点
     * @return 结果
     */
    @Override
    public int insertSysDispatchCustomer(SysDispatchCustomer sysDispatchCustomer)
    {
        return sysDispatchCustomerMapper.insertSysDispatchCustomer(sysDispatchCustomer);
    }

    /**
     * 修改乘客调度站点
     * 
     * @param sysDispatchCustomer 乘客调度站点
     * @return 结果
     */
    @Override
    public int updateSysDispatchCustomer(SysDispatchCustomer sysDispatchCustomer)
    {
        return sysDispatchCustomerMapper.updateSysDispatchCustomer(sysDispatchCustomer);
    }

    /**
     * 批量删除乘客调度站点
     * 
     * @param scheduleIds 需要删除的乘客调度站点主键
     * @return 结果
     */
    @Override
    public int deleteSysDispatchCustomerByScheduleIds(Long[] scheduleIds)
    {
        return sysDispatchCustomerMapper.deleteSysDispatchCustomerByScheduleIds(scheduleIds);
    }

    /**
     * 删除乘客调度站点信息
     * 
     * @param scheduleId 乘客调度站点主键
     * @return 结果
     */
    @Override
    public int deleteSysDispatchCustomerByScheduleId(Long scheduleId)
    {
        return sysDispatchCustomerMapper.deleteSysDispatchCustomerByScheduleId(scheduleId);
    }
}
